package com.tc.zigbee.mt.income;

import com.tc.util.DataUtil;
import com.tc.zigbee.entity.NodeDescriptor;

public class NodeDescriptorResponse extends IncomeMessage {

public NodeDescriptor getNodeDescriptor() {
		return nodeDescriptor;
	}
public NodeDescriptorResponse(byte[] command) {
	int i = 0;
	byte[] ad = new byte[2];
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.srcAddr = DataUtil.shortValue(ad);
	status = command[i++];
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.nwkAddr = DataUtil.shortValue(ad);
	nodeDescriptor.logicalType = command[i++];
	nodeDescriptor.apsFlag = command[i++];
	nodeDescriptor.MACCapabilityFlags = command[i++];
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.manufacturerCode = DataUtil.shortValue(ad);
	nodeDescriptor.maxBufferSize = command[i++];
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.maxTransferSize = DataUtil.shortValue(ad);
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.serverMask = DataUtil.shortValue(ad);
	ad[0] = command[i++];
	ad[1] = command[i++];
	nodeDescriptor.maxOutTransferSize = DataUtil.shortValue(ad);
	nodeDescriptor.descriptorCapabilities = command[i++];
	}
byte status;
NodeDescriptor nodeDescriptor = new NodeDescriptor();
}
